﻿using Inovout.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;

namespace Inovout.Web.Mvc
{
    public class ModelDescriptorModelValidatorProvider : DataAnnotationsModelValidatorProvider
    {
        static ModelDescriptorModelValidatorProvider()
        {
            DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(UniqueAttribute), typeof(UniqueAttributeAdapter));
        }
    }
}
